{% macro field_errors(field) %}
    <ul class="list-form-errors text-danger list-unstyled">
        <li>{{ field.errors[0] }}</li>
    </ul>
{% endmacro %}


{% macro vertical_field(field) %}
    <div class="form-group clearfix">
        {{ field.label() }}
        {{ field(class="form-control", placeholder=field.description, **kwargs) }}
        {{ field_errors(field) }}
    </div>
{% endmacro %}
